﻿using Learun.Util;
using SqlSugar;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Learun.Application.WorkFlow

{
    /// <summary>
    /// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
    /// Copyright (c) 2013-2018 Hexagon PPM
    /// 创 建：超级管理员
    /// 日 期：2020-12-17 10:47
    /// 描 述：流程分类
    /// </summary>
    [SugarTable(TableName = "lr_nwf_flowclassify")]
    public class NWFSchemeCategoryEntity
    {
        #region 实体成员
        /// <summary>
        /// 流程分类ID
        /// </summary>
        /// <returns></returns>
        [SugarColumn(ColumnName = "FLOWCLASSIFYID", IsPrimaryKey = true)]
        public string FlowClassifyID { get; set; }
        /// <summary>
        /// 流程分类名称
        /// </summary>
        /// <returns></returns>
        [SugarColumn(ColumnName = "CLASSIFYNAME")]
        public string ClassifyName { get; set; }
        /// <summary>
        /// 项目ID
        /// </summary>
        /// <returns></returns>
        [SugarColumn(ColumnName = "PROJECTID")]
        public string ProjectId { get; set; }
        /// <summary>
        /// 流程分类00001单位平台，00002项目平台
        /// </summary>
        /// <returns></returns>
        [SugarColumn(ColumnName = "PlantType")]
        public string PlantType { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        /// <returns></returns>
        [SugarColumn(ColumnName = "OrderID")]
        public int? OrderID { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        /// <returns></returns>
        [SugarColumn(ColumnName = "REMARK")]
        public string Remark { get; set; }
        /// <summary>
        /// CreateUserID
        /// </summary>
        /// <returns></returns>
        [SugarColumn(ColumnName = "CREATEUSERID")]
        public string CreateUserID { get; set; }
        /// <summary>
        /// CreateTime
        /// </summary>
        /// <returns></returns>
        [SugarColumn(ColumnName = "CREATETIME")]
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// UpdateUserID
        /// </summary>
        /// <returns></returns>
        [SugarColumn(ColumnName = "UPDATEUSERID")]
        public string UpdateUserID { get; set; }
        /// <summary>
        /// UpdateTime
        /// </summary>
        /// <returns></returns>
        [SugarColumn(ColumnName = "UPDATETIME")]
        public DateTime? UpdateTime { get; set; }
        #endregion

        #region 扩展操作
        /// <summary>
        /// 新增调用
        /// </summary>
        public void Create()
        {
            this.FlowClassifyID = Guid.NewGuid().ToString();
        }
        /// <summary>
        /// 编辑调用
        /// </summary>
        /// <param name="keyValue"></param>
        public void Modify(string keyValue)
        {
            this.FlowClassifyID = keyValue;
        }
        #endregion
    }
}

